package com.my.study.mapstruct.converter;

import com.my.study.mapstruct.dao.OrderDO;
import com.my.study.mapstruct.entity.Order;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * DO <——> Entity
 *
 * @author: yidujun
 * @create: 2021/06/23 16:38
 */
@Mapper
public interface OrderConverter {
    OrderConverter INSTANCE = Mappers.getMapper(OrderConverter.class);

    /**
     * DO -> Entity
     *
     * @param orderDO
     * @return
     */
    Order toEntity(OrderDO orderDO);

}
